@BEGINEVENTS

@IF
NEGOTIATION
talker=ANYBODY
talkertype=HumanOrComputer
listener=Ghaznavids
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
NEGOTIATION
talker=Ghaznavids
talkertype=HumanOrComputer
listener=ANYBODY
listenertype=HumanOrComputer
@THEN
@ENDIF

@IF
CITYTAKEN
city=Peshawar
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
NEWS: Mahmud, leader of the Ghazni Turks, defeats Jaipal, King of Punjab, at Peshawar! 
Captured and later released on randsom, Jaipal cannot bear the shame: he abdicates to his son 
Anandpal, and then mounts on his funeral pyre and perish in the flames.
The Turks control now Khybar Pass, gateway to the Indus' Vale: Mahmud vows to plunder India 
every year with his raiders!
Anandpal appeals the other Indian Rajas for help.
ENDTEXT
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Lahore
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
NEWS: At the battle of Lahore, Anandpal and his army are defeated by Mahmud's Turks, who 
conquer Northern Punjab and threaten nearby lands!
ENDTEXT
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Bhatinda
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
NEWS: The Turks have conquered the fortress of Bhatinda, guarding Rajput lands beyond Indus! 
Rajput rulers claim for help, but no one can make an agreement to form a League.
ENDTEXT
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Delhi
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
NEWS: The Turks have taken Dhilli, also named Pitoragarh! They settle in the city making it a 
base to conquer nearby lands. Cahamana rulers call for the help of other Indian rajas, to face the 
invaders.
ENDTEXT
JUSTONCE
GIVETECHNOLOGY
receiver=Ghaznavids
technology=37
@ENDIF

@IF
CITYTAKEN
city=Delhi
attacker=Cahamana
defender=ANYBODY
@THEN
TEXT
NEWS: The Cahamanas defeat the Tomaras and conquer their capital of Pitoragarh (Dhilli), 
making of it a twin capital to Ajayameru (Ajmer).
ENDTEXT
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Kanauj
attacker=ANYBODY
defender=other kingdoms
@THEN
TEXT
NEWS: Kanauj, capital of the Gahadavalas, falls to the enemy! The rich city, controlling the Vale 
of Gange and its trade, is now held by a dangerous conqueror!
ENDTEXT
@ENDIF

@IF
CITYTAKEN
city=Kasamandi
attacker=ANYBODY
defender=other kingdoms
@THEN
TEXT
NEWS: The kingdom of Nepala, gateway to Tibet, has been conquered! The invaders now 
control the rich trade route.
ENDTEXT
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Manyakheta
attacker=ANYBODY
defender=other kingdoms
@THEN
TEXT
NEWS: Manyakheta, capital of the Rastrakutas, has fallen! Anarchy spreads in the Empire,
as many feudal lords vie for power. The palace is looted by conquerors for 500 Gold.
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=500
JUSTONCE
@ENDIF

@IF
CITYTAKEN
city=Chittorgarh
attacker=Ghaznavids
defender=other kingdoms
@THEN
TEXT
NEWS: As the city of Chittorgarh is besieged by a Muslim army, its women, rather than
be captured by the lustful invaders, celebrate the ancient rite of Jauhar, jumping
on a lit pyre and perishing in the flames. Their men, having nothing more to live for,
charge in a suicide attack, leaving the surviving conquerors a deserted city.
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Mahmud Ghazni
attacker=ANYBODY
defender=Ghaznavids
@THEN
TEXT
NEWS: Mahmud of Ghazni, Sultan of the Turks, id dead! The Muslim honour their leader with a 
great tomb in Ghazni, in memory of a champion of the Faith and a destroyer of infidel temples.
On the other hand, it is the end of an age of fear for the Rajput people of northwestern India, who 
hold celebration for the terrible raider's death.
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Muhammad Ghor
attacker=ANYBODY
defender=Ghaznavids
@THEN
TEXT
NEWS: Muhammad of Ghor, Sultan of Ghazni, has died! The power passes to his lieutenant and 
former slave, Qutb ud-Din Aibac, who founds the Mamluk (Slave) dynasty.
ENDTEXT
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Prithviraj III
attacker=ANYBODY
defender=Cahamana
@THEN
TEXT
NEWS: Prithviraj, valiant champion of the Rajputs, has been killed! Captured and then put to 
death, his name will be recorded as one of a defender of Hindu's principles, and a martyr for 
India's freedom. His successor calls for a League to repel the Turk invaders from Rajput lands.
ENDTEXT
JUSTONCE
GIVETECHNOLOGY
receiver=Cahamana
technology=68
@ENDIF

@IF
TURN
turn=224
@THEN
TEXT
NEWS: Bloody coup in Ghazni! The Sultan is killed, and the power passes to another Turk chief 
from Ghor. Muhammad, the new Sultan, vows to conquer India, "the land of the idols", and 
spread the Prophet's Word among the infidels!
ENDTEXT
CREATEUNIT
unit=Muhammad Ghor
owner=Ghaznavids
veteran=no
homecity=none
locations
23,33
25,27
46,34
endlocations
JUSTONCE
GIVETECHNOLOGY
receiver=Ghaznavids
technology=38
@ENDIF

@IF
TURN
turn=216
@THEN
TEXT
NEWS: Prithviraj III, a bold and chivalrous young man, becomes Raja of the Cahamanas
in Ajmer.
ENDTEXT
CREATEUNIT
unit=Prithviraj III
owner=Cahamana
veteran=no
homecity=none
locations
72,52
76,38
75,45
endlocations
JUSTONCE
@ENDIF

@IF
TURN
turn=36
@THEN
TEXT
NEWS: Tabuktigin, the slave-emperor, founder of the kingdom of Ghazni, has died! His son 
Mahmud takes the throne. 
ENDTEXT
CREATEUNIT
unit=Mahmud Ghazni
owner=Ghaznavids
veteran=no
homecity=none
locations
23,33
25,27
endlocations
JUSTONCE
@ENDIF

@IF
RECEIVEDTECHNOLOGY
technology=29
receiver=Calukya
@THEN
TEXT
Taila II, feudatory to the Rastrakuta King, declares its independence, founding the Later 
Calukya dynasty.
ENDTEXT
CREATEUNIT
unit=Maharajadhiraj
owner=Calukya
veteran=yes
homecity=none
locations
108,98
106,90
endlocations
JUSTONCE
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Rajput Cavalry
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
76,38
69,33
81,43
83,37
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Rajput Cavalry
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
87,31
84,26
91,23
105,33
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Rajput Cavalry
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
70,58
66,62
63,71
59,75
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Rajput Cavalry
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
72,70
80,60
83,51
88,40
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Elephant
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
91,77
89,83
90,72
97,77
107,59
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Indian Warrior
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
109,85
108,78
114,90
116,82
115,75
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=4
@THEN
CREATEUNIT
unit=Elephant
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
120,106
126,116
116,100
112,110
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Elephant
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
122,76
124,70
124,62
124,56
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=3
@THEN
CREATEUNIT
unit=Elephant
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
126,44
125,49
118,46
118,54
112,50
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Shan Elephants
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
139,3
132,4
154,6
128,2
endlocations
@ENDIF

@IF
RANDOMTURN
denominator=5
@THEN
CREATEUNIT
unit=Pirate Ship
owner=TRIGGERATTACKER
veteran=no
homecity=none
locations
43,79
59,85
47,75
endlocations
@ENDIF

@IF
CITYTAKEN
city=Anuradhapura
attacker=Cola
defender=ANYBODY
@THEN
TEXT
NEWS: The Colas have begun their invasion of the isle of Lanka!
ENDTEXT
@ENDIF

@IF
UNITKILLED
unit=Temple
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
Muslims plunder Hindu temple! 500 Gold looted.
ENDTEXT
CHANGEMONEY
receiver=Ghaznavids
amount=500
@ENDIF

@IF
UNITKILLED
unit=Maharaja
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
Maharaja killed! 500 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=TRIGGERATTACKER
amount=500
@ENDIF

@IF
CITYTAKEN
city=Pragjyotisapura
attacker=Ghaznavids
defender=ANYBODY
@THEN
TEXT
NEWS: The Muslims take the capital of Kamarupa. The thugs, disturbed in their activities, react 
against their invasion!
ENDTEXT
CREATEUNIT
unit=Thugs
owner=Other Kingdoms
veteran=yes
homecity=none
locations
129,3
127,3
127,1
127,3
endlocations
@ENDIF

@IF
UNITKILLED
unit=Maharaja
attacker=ANYBODY
defender=Cahamana
@THEN
TEXT
Cahamana Maharaja killed! 200 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=Cahamana
amount=-200
CREATEUNIT
unit=Maharaja
owner=Cahamana
veteran=no
homecity=none
locations
72,52
76,38
83,37
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Maharaja
attacker=ANYBODY
defender=Candella
@THEN
TEXT
Candella Maharaja killed! 200 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=Candella
amount=-200
CREATEUNIT
unit=Maharaja
owner=Candella
veteran=no
homecity=none
locations
100,36
93,41
105,33
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Maharaja
attacker=ANYBODY
defender=Kalacuri
@THEN
TEXT
Kalacuri Maharaja killed! 200 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=Kalacuri
amount=-200
CREATEUNIT
unit=Maharaja
owner=Kalacuri
veteran=no
homecity=none
locations
96,52
90,56
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Maharajadhiraj
attacker=ANYBODY
defender=Pala
@THEN
TEXT
Pala Maharajadhiraja killed! 500 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=Pala
amount=-500
CREATEUNIT
unit=Maharajadhiraj
owner=Pala
veteran=no
homecity=none
locations
128,28
117,21
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Maharajadhiraj
attacker=ANYBODY
defender=Cola
@THEN
TEXT
Cola Maharajadhiraja killed! 500 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=Cola
amount=-500
CREATEUNIT
unit=Maharajadhiraj
owner=Cola
veteran=no
homecity=none
locations
130,92
132,104
endlocations
JUSTONCE
@ENDIF

@IF
UNITKILLED
unit=Maharajadhiraj
attacker=ANYBODY
defender=Calukya
@THEN
TEXT
Calukya Maharajadhiraja killed! 200 Gold looted from his palace!
ENDTEXT
CHANGEMONEY
receiver=Calukya
amount=-200
CREATEUNIT
unit=Maharajadhiraj
owner=Calukya
veteran=no
homecity=none
locations
108,96
106,90
endlocations
JUSTONCE
@ENDIF

@ENDEVENTS


@ENDEVENTS
